using Core.Model;

namespace UI.Models.ShoppingCart
{
    internal class CartItemFactory
    {
        internal CartItem CreateFrom(Item item)
        {
           var cartItem = new CartItem {ItemId = item.ItemId, Name = item.Name, Price = item.Price};
            return cartItem;
        }
    }
}